package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Choose;
import tech.aistar.mapper.AgentMapper;
import tech.aistar.mapper.ChooseMapper;
import tech.aistar.service.IChooseService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: shuaiguo
 * @Date: 2020/10/01/17:41
 * @Description:
 */
@Service
public class ChooseImpl implements IChooseService {
    @Autowired
    private ChooseMapper chooseMapper;
    @Override
    public List<Choose> selectAll() {
        return chooseMapper.selectAll();
    }

    @Override
    public void insert(Choose choose) {
chooseMapper.insert(choose);
    }

    @Override
    public void updateByPrimaryKey(Choose choose) {
chooseMapper.updateByPrimaryKey(choose);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
chooseMapper.deleteByPrimaryKey(id);
    }
}
